<?php
// +----------------------------------------------------------------------
// |     【CustomerSample】Validate验证类
// +----------------------------------------------------------------------

declare (strict_types = 1);

namespace app\common\validate;

use think\Validate;
class CustomerSample extends Validate{
	
    protected $rule = [
		'cusid' => 'require',
	];

    protected $message = [
		'cusid.require' => '请先选择客户名称',
	];

	protected $scene = [
		'add' => ['cusid'],
	];
	
    /**
     * 添加
     */
    public function sceneAdd(){
        return $this->only([]);
    }

    /**
     * 编辑
     */
    public function sceneEdit(){
        return $this->only([]);
    }
}
